/**
 * app路由
 */
import React from 'react';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
//=============组件===================================
import {Start} from '../views/start/Start';
import {Main} from '../views/main/Main';
import {Guide} from '../views/guide/Guide';
import {Login} from '../views/login/Login';
import {Home} from '../views/home/Home';
import {My} from '../views/my/My';
import {Collection} from '../views/collection/Collection';

export const StackRouter = () => {
  const Stack = createNativeStackNavigator();
  return (
    <Stack.Navigator
      initialRouteName="Main"
      // 配置取消导航栏
      screenOptions={{
        headerShown: false,
        contentStyle: {backgroundColor: '#fff'},
      }}>
      <Stack.Screen name="Main" component={Main} />
      <Stack.Screen name="Guide" component={Guide} />
      <Stack.Screen name="Login" component={Login} />
      <Stack.Screen name="Start" component={Start} />
      <Stack.Screen name="Home" component={Home} />
      <Stack.Screen name="My" component={My} />
      <Stack.Screen name="Collection" component={Collection} />
    </Stack.Navigator>
  );
};
